#ifndef OUTLINESECTION_H
#define OUTLINESECTION_H
#include <QString>
#include <QDataStream>

class OutlineSection
{
public:
	OutlineSection();
    OutlineSection( QString newTitle,  QString newDescription, bool newOptional,  QString newText,
                    bool newDefTextRequired,  bool newHasDates);
    QString getTitle() const;
    QString getDescription() const;
    QString getComments() const;
    QString getText() const;
    QString getText();
    bool isUpdated() const;
    bool isOptional() const;
    bool isDefTextRequired() const;
    bool doesHaveDates() const;

    void setTitle(QString newTitle);
    void setDescription(QString newDescription);
    void setComments (QString newComments);
    void setText(QString newText);
    bool clearComments();

private:
    QString title;
    QString description;
    bool optional;
    QString comments;
	bool needsUpdate;
    QString text;
    bool defTextRequired;
    bool hasDates;
};
QDataStream &operator<<(QDataStream &out, const OutlineSection &data);
QDataStream &operator>>(QDataStream &in, OutlineSection &data);
#endif
